/**
* @file qousermanager.cpp
* @describe 用户管理类
* @author gaoyuelong
* @date 2022/05/07
*/

#include "qousermanager.h"

QoUserManager *QoUserManager::getInstance()
{
    static QoUserManager qoUserManager;
    return &qoUserManager;
}

QoUserManager::QoUserManager(QObject *parent)
    : QObject(parent)
    , m_pCurrentUser(new QoUser())
{

}

const std::shared_ptr<QoUser> QoUserManager::getCurrentUser() const
{
    return m_pCurrentUser;
}

QVector<QoUser> &QoUserManager::getCurrentUserFriends()
{
    return m_vecCurrentUserFriends;
}
